package com.itany.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.ArrayList;

@Configuration
public class TestMvcConfig implements WebMvcConfigurer {


    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showbooklist").setViewName("booklist");
        registry.addViewController("/showbooktype").setViewName("booktype");
        registry.addViewController("/city").setViewName("city");
        registry.addViewController("/index").setViewName("index");
        registry.addViewController("/login").setViewName("login");
        registry.addViewController("/manager").setViewName("manager");
        registry.addViewController("/showorderlist").setViewName("orderlist");
        registry.addViewController("/permission").setViewName("permission");
        registry.addViewController("/province").setViewName("province");
        registry.addViewController("/region").setViewName("region");
        registry.addViewController("/role").setViewName("role");
        registry.addViewController("/showexamine").setViewName("supplier_examine");
        registry.addViewController("/showplatform").setViewName("supplier_platform");
        registry.addViewController("/showsupplierbooklist").setViewName("supplierbooklist");
        registry.addViewController("/showsupplierlist").setViewName("supplierlist");
        registry.addViewController("/showuserlist").setViewName("userlist");
    }


}
